package com.md.service;

import com.md.entity.Blog;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Select;
import org.apache.ibatis.annotations.Update;

import java.util.List;

public interface BlogService {

    List<Blog> selectAll();

    Blog selectById(int id);

    List<Blog> selectName(String name);

    int deleteById(int id);

    int insertById(Blog blog);

    int updateById(Blog blog);
}
